<?php

namespace  app\educational\validate;

use think\Validate;

class TeacherLeaveValidate extends Validate
{

        protected $rule = [
            'class_id' => 'require|gt:0',
//            'leave_datetime' => 'require',
            'reason' => 'require',
        ];

        protected $message = [
            'class_id.require' => '班级不能为空',
//            'leave_datetime.require' => '课时不能为空',
            'reason.require' => '事由不能为空',
            'class_id.gt' => '请选择班级',
        ];

}